/* 
 * File:   gui_textbox.h
 * Author: tasx
 *
 * Created on 28 settembre 2011, 15.32
 */

#ifndef GUI_TEXTBOX_H
#define	GUI_TEXTBOX_H

#ifdef	__cplusplus
extern "C" {
#endif

#include <glib.h>
#include <SDL/SDL.h> 
#include <SDL/SDL_gfxPrimitives.h>
#include "../util/type.h"
#include "../util/gui_util.h"
#include "type_gui.h"
    
#define GUI_TEXTBOX_MODE_NORMAL 0
#define GUI_TEXTBOX_MODE_PASSWORD 1

    textbox* gui_textbox_new_empty(main_obj*);
    
    gboolean gui_textbox_normal_paint(main_obj*, textbox*);
    
    gboolean gui_textbox_update(main_obj*, textbox*);
    
    gboolean gui_textbox_click(main_obj*, textbox*);
    
    void gui_textbox_set_mode(textbox*, int);

#ifdef	__cplusplus
}
#endif

#endif	/* GUI_TEXTBOX_H */

